package com.ruoyi.bzjgl.controller;

import com.ruoyi.bzjgl.domain.Bzjtable;
import com.ruoyi.bzjgl.service.IOverdueWarningService;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/overdueWarning")
public class OverdueWarningController extends BaseController {

    @Autowired
    private IOverdueWarningService overdueWarningService;


    @GetMapping("/list")
    public TableDataInfo list(String isOverdue, Integer overdueDay)
    {
        startPage();
        List<Bzjtable> list = overdueWarningService.selectOverdueWarningList(isOverdue,overdueDay);
        return getDataTable(list);
    }
}
